﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLNH.MyUserControls
{
    public partial class EditAndDelUC : UserControl
    {
        private int _id;

        public int ID { get { return _id; } set { _id = value; } }

        public delegate void EditClickHandler(int id);
        public EditClickHandler EditClick;

        public delegate void DeleteClickHandler(int id);
        public DeleteClickHandler DeleteClick;

        public EditAndDelUC()
        {
            InitializeComponent();
        }

        private void pb_edit_Click(object sender, EventArgs e)
        {
            EditClick(_id);
        }

        private void pb_delete_Click(object sender, EventArgs e)
        {
            DeleteClick(_id);
        }
    }
}
